namespace EyeOpen.Build
{
	using System;

	public static class TaskExtensions
	{
		public static T Configure<T>(this T task, Action<T> action)
			where T : ITask
		{
			action(task);

			return task;
		}

		public static T Configure<T>(this T task, ITaskConfigurer<T> configurer) 
			where T : ITask
		{
			configurer.Configure(task);

			return task;
		}
	}
}